module.exports = class extends think.global.service {
  async indexAction() {
    try {
      var result = await think.http.post(this.$url, this.post(), this.$config)
      this.model('user').clearTimeoutList(this.post().openid)
      console.log('清除超时离线回复', this.post().openid)
      this.json(result.data)
    } catch (e){
      this.ctx.fail(1000, e.message)
    }
  }
};

// {
//   "appid":"wx283f05dbb353b933",
//   "openid":"oo5pZ0-cIg9kiDc3H0HCV9ShrXAo",
//   "content":"哈哈哈哈",
//   "cs_id":100,
//   "send_type":1002,
//   "send_time":1539225384,
//   "type":"text"
// }